home *** CD-ROM | disk | FTP | other *** search
/ Champak 123 / (Vol 123) Jan 13 2011.iso / Games / bread-cooking.swf / scripts / DefineSprite_44 / frame_1 / PlaceObject2_43_1 / CLIPACTIONRECORD onClipEvent(mouseDown).as < prev   
Text File  |  2011-01-13  |  652b  |  28 lines

  1. onClipEvent(mouseDown){
  2.    if(_root.isGameOver)
  3.    {
  4.       return undefined;
  5.    }
  6.    if(this.hitTest(_root._xmouse,_root._ymouse,true))
  7.    {
  8.       if(state == 0)
  9.       {
  10.          if(_root.cursor.gu_set())
  11.          {
  12.             startTime = getTimer() + Math.random() * 1000;
  13.             state = 1;
  14.             this.gotoAndPlay(2);
  15.             Mouse.show();
  16.             _root.cursor.AddSound();
  17.          }
  18.       }
  19.       else if(state >= 3 and _root.cursor.getState() == 0)
  20.       {
  21.          _root.cursor.RemoveSound();
  22.          this.gotoAndStop("ana");
  23.          _root.cursor.tsutsuku(state);
  24.          state = 0;
  25.       }
  26.    }
  27. }
  28.